from django import forms
from .models import Book, SingleFile, Lesson
from apps.forms import FormMixin


class BookForm(forms.ModelForm, FormMixin):
    class Meta:
        model = Book
        fields = ["name", "file"]


class SingleFileForm(forms.ModelForm, FormMixin):
    class Meta:
        model = SingleFile
        fields = ["file"]


class LessonForm(forms.ModelForm, FormMixin):
    class Meta:
        model = Lesson
        fields = ['title']
